package com.ehome.poct.core.dao.entity.check;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ehome.mybatisplus.autoconfigure.BaseEntityOld;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 检测记录
 */
@Data
@Accessors(chain = true)
@TableName(value = "test_record_detail")
public class TestRecordDetailDO extends BaseEntityOld<TestRecordDetailDO> {
    /**
     * 主键id
     */
    @TableId(value = "record_id")
    private Long recordId;

    /**
     * 检测时间
     */
    @TableField(value = "test_time")
    private LocalDateTime testTime;

    /**
     * 金额
     */
    @TableField(value = "test_money")
    private BigDecimal testMoney;

    /**
     * 人份
     */
    @TableField(value = "test_people_portion")
    private BigDecimal testPeoplePortion;

    /**
     * 是否支付(0-未支付，1-已支付)
     */
    @TableField(value = "is_pay")
    private Boolean isPay;

    /**
     * 设备编号
     */
    @TableField(value = "sno")
    private String sno;

    /**
     * 设备编号2
     */
    @TableField(value = "sno2")
    private String sno2;

    /**
     * 订单号
     */
    @TableField(value = "order_no")
    private String orderNo;

    /**
     * 检测分润ID
     */
    @TableField(value = "profit_record_id")
    private Long profitRecordId;

    /**
     * 诊所ID
     */
    @TableField(value = "clinic_id")
    private Long clinicId;

    /**
     * 检测项目ID
     */
    @TableField(value = "strip_type_code")
    private Integer stripTypeCode;

    /**
     * 冗余，诊所的上级合伙人ID
     */
    @TableField(value = "agent_id")
    private Long agentId;

    /**
     *
     */
    @TableField(value ="device_type")
    private Integer deviceType;

    /**
     *
     */
    @TableField(value ="test_report_id")
    private Long testReportId;

    /**
     * 第二个设备的人份
     */
    @TableField(value = "test_people_portion2")
    private BigDecimal testPeoplePortion2;

    @TableField(value = "pay_time")
    private LocalDateTime payTime;
}